package com.za.wbw.dao.shop.impl;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import com.za.wbw.dao.shop.ShopDao;
import com.za.wbw.model.shop.ShopInfo;

public class ShopDaoImpl extends SqlMapClientDaoSupport implements ShopDao {
	// 查询店铺信息
	public ShopInfo queryShopInfo(int shopId) throws Exception{
		return (ShopInfo)getSqlMapClientTemplate().queryForObject("shop.queryShopInfo",shopId);
	}
	// 更新店铺信息
	public void updateShopInfo(ShopInfo info) throws Exception{
		
	}
	// 添加店铺信息
	public ShopInfo saveShopInfo(ShopInfo info) throws Exception{
		return info;
	} 
}
